package com.mcxx.util;

import net.jodah.expiringmap.ExpirationPolicy;
import net.jodah.expiringmap.ExpiringMap;

import java.io.File;
import java.util.*;
import java.util.concurrent.TimeUnit;

public class Constant {
	public final static int ZERO = 0;

	public static int MQ_MSG_ID_TIME = 120;
	public static int WELFARE_MQ_MSG_EXPIRE = 2 * 60 * 60;
	public final static String MAX_YEAR = "210001";
	public static Date MAX_YEAR_DATE;
	public static int TIME_TICKET_TIMES =  30;
	public static int TIME_BANK_TIMES = 1800;
	public static int TIME_HALF_DAY = 43200;


	static {
		Calendar c = Calendar.getInstance();
		c.set(2100,0,01);
		MAX_YEAR_DATE = c.getTime();
	}


    public static final String HIS_ABLE_STATUS = "95,98,99";

	public static ExpiringMap<String,String> orderUseMap = ExpiringMap.builder()
			.maxSize(2000)
			.expiration(1, TimeUnit.MINUTES)
			.expirationPolicy(ExpirationPolicy.ACCESSED)
			.variableExpiration()
			.build();



	public static String getUUID(){

		return UUID.randomUUID().toString().replace("-", "").toUpperCase();
	}

	public static void delete(File file) {
		if(!file.exists()) {
			return;
		}

		if(file.isFile() || file.list()==null) {
			file.delete();
			System.out.println("删除了"+file.getName());
		}else {
			File[] files = file.listFiles();
			for(File a:files) {
				delete(a);
			}
			file.delete();
			System.out.println("删除了"+file.getName());
		}

	}


	public static class RecheckFlag{
		public static Integer YES = 1;
		public static Integer NO = 0;
	}


	public static class AreaLevel{
		public static final int PROVINCE = 1;
		public static final int CITY = 2;
		public static final int COUNTY = 3;
		public static final int STREET = 4;
		public static final int COMMUNITY = 5;
		public static final int GROUP = 6;
	}


	public static class OrderType {

		public static String NEW = "01";

		public static String RECHECK = "02";

		public static String MOVE_OUT = "03";

		public static String MOVE_IN = "04";

		public static String REPUT = "05";

		public static String SUSPEND = "06";

		public static String EXPIRE = "07";
	}


	public static class AreaMoveStatus{

		public static String  NEW = "02";

		public static String  APPROVAL = "03";

		public static String  TURN_DOWN = "04";

		public static String  CONFIRM = "05";

		public static String  DISAGREE = "06";
	}

	public static class CheckDatailStatus{

		public static String Pi = "2";

		public static String he = "1";

		public static String back = "0";

		public static String NOTICE_Pi = "4";

		public static String NOTICE_he = "3";

		public static String FIRST_he = "5";

		public static String revoke = "6";
	}


	public static class RemarkOperType{
		public static String SEQU = "01";
		public static String OTHER = "02";

		public static String STREET = "03";

		public static String COUNTY = "04";

	}


	public static class BusinessCode{

		public static String DIBAO = "110";

		public static String TEKUN = "130";

		public static String LINSHI = "500";

		public static String DISHOURU = "600";

		public static String HOMECARE = "10001";
	}


	public static class SalvationRuleType{

		public static String GENERAL = "2";

		public static String BASIC = "1";

		public static String EXTENSION = "3";
	}


	public static class SalvationRuleState{

		public static String ENABLED = "1";

		public static String DISABLED = "2";

		public static String BLOCKING = "3";

		public static String WRITE_OFF = "4";
	}


	public static class OrganizationState{

		public static Integer WRITE_OFF = 0;

		public static Integer ENABLED = 1;

		public static Integer BLOCKING = 2;

		public static Integer DISABLED = 3;
	}


	public static class OrganizationType{

		public static String ADMINIS = "0";

		public static String SUPPORT = "2";
	}

	public static class CareFeeType{
		public static String BASE = "10000000000695";
		public static String CARE = "402886cb56f8286a0156f87746540018";
		public static String DIBAO_BASE = "10000000000284";
		public static String DIBAO_FENLEI = "10000000000691";

		public static String TEKUN_BASE_CODE = "310";

		public static String CARE_CODE = "330";

		public static String DIBAO_BASE_CODE = "100";

		public static String DIBAO_SPECIAL_CODE = "101";

		public static String DIBAO_FENLEI_CODE = "110";
		public static String LINSHI_BASE_CODE = "700";
	}


	public static class BankStatus{
		public static String OK = "1";
		public static String STOP = "0";
	}


	public static class SalaryType{

		public static String ZHENGCHANG = "01";

		public static String WELFARE = "02";

		public static String WELFARE_REISSUE = "03";

		public static String SUSPEND_REISSUE = "04";

		public static String CUSTOM_FUND_PAY_REISSUE = "05";
	}


	public static class MasterInfoComp{
		public static String YES = "1";
		public static String No = "0";

	}


	public static class CheckType{

		public static String NEW = "01";

		public static String  RECHECK ="02";

		public static String  BATCH_RECHECK = "03";
	}


	public static class  CheckState {

		public static String  SAVE = "00";

		public static String  WIAT_SEND = "01";

		public static String  SEND ="02";

		public static String  PROVINCE_RECEIVE="05";

		public static String PROVINCE_FORWARD ="10";

		public static String  CITYRECEIVE ="15";

		public static String CITY_CHECK ="20";

		public static String  SEND_PROVINCE_REQUEST = "30";

		public static String  PROVINCE_GET_REQUEST ="35";

		public static String  PROVINCE_RESULT ="40";

		public static String  CITY_RECEIVED_PROVINCE_RESULT = "45";

		public static String CITY_RESULT = "50";

		public static  String provinceGetResult = "55";

		public static String PROVINCE_FORWARD_CHECK_RESULT = "60";

		public static String FORWARD_RESULT = "65";

		public static String REPORT_RESULT = "70";

		public static String PROVINCE_RECEIVED_RESULT = "75";

		public static String PROVINCE_FORWARD_RESULT = "80";

		public static String CITY_RECEIVED_RESULT = "85";

		public static String CHECK_EXCEPTION = "90";

		public static String Data_VERITY_EXCEPTION = "91";

		public static String END_CHECK = "93";

		public static String CHECK_EXPIRE = "94";

	}


	public static class CheckResCode{

		public static String CHECK_SEND_SUCCESS = "000";

		public static String SEND_CHECK_ERROR = "001";

		public static String AUTHOR_ERROR = "002";

		public static String APPLYNUM_EXIST = "011";

		public static String CHECK_SEND_BACK = "021";

		public static String CHECN_UNFINISH = "022";


		public static String WTHD_SUCCESS = "200";

		public static String BATCH_DATA_ERROR = "301";

		public static String OBJECT_ERROR = "302";

		public static String VALIDATE_ERROR = "400";
	}


	public static class BusiCode{

		public static String RECHECK_BATCH = "001";

		public static String NOTICE_BOARD_BATCH = "002";

		public static String CHECK_BATCH = "003";
	}


	public static class CheckResultState{

		public static String SUCCESS = "01";

		public static String CHECK_EXCEPTION = "02";

		public static String EXCEPTION = "90";

		public static String Data_VERITY_EXCEPTION = "91";

		public static String RETURN_ENTRUST = "92";

		public static String STOP_CHECK = "93";
	}


	public static class BatchRecheckStat{


		public static  String  RECHECKING = "1";

		public static String  COMPLETED = "2";

		public static String  ERROR= "3";
	}


	public static class RECHECK_FLAG {
		public static int YES = 1;
		public static int NO = 0;
	}


	public static class SalaryChangeType{

		public static String CHANGE_ADD = "01";

		public static String CHANGE_REDUCE = "02";

		public static String CHANGE_NEW = "03";

		public static String CHANGE_EXPIRE = "04";

		public static String  CHANGE_NO= "05";

		public static String  CHANGE_SUSPEND= "07";

		public static String  MOVE_OUT= "08";

		public static String  MOVE_IN= "09";

		public static String  CANCEL_SUSPEND= "10";
	}


	public static class BizState{

		public static String LOADINGOVER = "09";

		public static String SALVATION = "10";

		public static String TOWN_CHECK = "11";

		public static String WAIT_IN_HOUSE = "12";

		public static String YES_IN_HOUSE = "13";

		public static String YES_APPRAISAL = "14";

		public static String CALC_FAMILY_SALARY = "15";

		public static String WAIT_NOTICE_BOARD = "16";

		public static String NOTICE_BOARD_CONFIRM = "17";

		public static String NOTICE_BOARD_ING = "18";

		public static String NOTICE_BOARD_COMPLETE = "19";

		public static String AUDIT_REJECT = "21";

		public static String AUDIT_ING = "30";

		public static String APPROVE_REJECT = "31";

		public static String TOWN_REVOKE = "38";

		public static String AUDIT_REFUSE = "39";

		public static String APPROVE_ING = "40";

		public static String COUNTY_CHECK = "41";

		public static String COUNTY_WAIT_IN_HOUSE = "42";

		public static String COUNTY_YES_IN_HOUSE = "43";

		public static String COUNTY_CALC_FAMILY_SALARY = "44";

		public static String COUNTY_WAIT_NOTICE_BOARD = "45";

		public static String COUNTY_NOTICE_BOARD_CONFIRM = "46";

		public static String COUNTY_NOTICE_BOARD_ING = "47";

		public static String COUNTY_NOTICE_BOARD_COMPLETE = "48";

		public static String APPROVE_REFUSE = "51";

		public static String APPROVE_YES = "99";
	}


	public static class BizStateNew{

		public static String SALVATION = "10";

		public static String TOWN_CHECK = "11";

		public static String WAIT_IN_HOUSE = "12";

		public static String IN_HOUSE_ING = "19";

		public static String YES_IN_HOUSE = "20";

		public static String AUDIT_ING = "22";

		public static String WAIT_NOTICE_BOARD = "23";

		public static String NOTICE_BOARD_CONFIRM = "25";

		public static String NOTICE_BOARD_ING = "26";

		public static String WAINT_IN_HOUSE_AGAIN="27";

		public static String IN_HOUSE_ING_AGAIN="28";

		public static String YES_IN_HOUSE_AGAIN="29";

		public static String WAIT_APPRAISAL = "30";

		public static String APPRAISAL_ING = "31";

		public static String CONFIRM_APPROVE = "35";

		public static String APPROVE_REJECT = "38";

		public static String APPROVE_ING = "40";

		public static String COUNTY_WAIT_IN_HOUSE = "45";

		public static String COUNTY_IN_HOUSE_ING = "46";

		public static String COUNTY_YES_IN_HOUSE = "47";

		public static String REJECT_WAIT_APPROVE = "49";

		public static String COUNTY_APPROVE_ING = "50";

		public static String COUNTRY_WAIT_NOTICE_BOARD = "60";

		public static String COUNTRY_NOTICE_BOARD_CONFIRM = "61";

		public static String COUNTRY_NOTICE_BOARD_ING = "62";

		public static String SYS_BACK = "93";

		public static String TOWN_DELETE = "94";

		public static String AUDIT_REFUSE = "95";

		public static String APPROVE_REFUSE = "98";

		public static String APPROVE_YES = "99";

		public final static Map<String,String> BizStateChineseNameMap = new HashMap();

		static {
			BizStateChineseNameMap.put("10" , "已登记");
			BizStateChineseNameMap.put("11", "乡镇核对中");
			BizStateChineseNameMap.put("12", "已核对");
			BizStateChineseNameMap.put("19", "入户中");
			BizStateChineseNameMap.put("20", "已入户");
			BizStateChineseNameMap.put("22", "审核-暂存");
			BizStateChineseNameMap.put("23", "待公示");
			BizStateChineseNameMap.put("25", "公示待确认");
			BizStateChineseNameMap.put("26", "公示中");
			BizStateChineseNameMap.put("27", "公示有异议待入户");
			BizStateChineseNameMap.put("28", "入户调查中");
			BizStateChineseNameMap.put("29", "已入户待上报");
			BizStateChineseNameMap.put("30", "待评议");
			BizStateChineseNameMap.put("31", "民主评议中");
			BizStateChineseNameMap.put("35", "待上报");
			BizStateChineseNameMap.put("38", "驳回");
			BizStateChineseNameMap.put("40", "审批中");
			BizStateChineseNameMap.put("45", "待区县抽查");
			BizStateChineseNameMap.put("46", "入户抽查中");
			BizStateChineseNameMap.put("47", "已入户");
			BizStateChineseNameMap.put("49", "驳回审批中");
			BizStateChineseNameMap.put("50", "审批-暂存");
			BizStateChineseNameMap.put("60", "区县-待公示");
			BizStateChineseNameMap.put("61", "区县-公示待确认");
			BizStateChineseNameMap.put("62", "区县-公示中");
			BizStateChineseNameMap.put("94", "乡镇已删除");
			BizStateChineseNameMap.put("95", "审核未通过");
			BizStateChineseNameMap.put("98", "审批-拒批");
			BizStateChineseNameMap.put("99", "已审批");
		}
	}


	public static class TmpOrderBizStateType{

		public static String ORDER_EDIT = "orderEdit";

		public static String TOWN_DELETE = "townDelete";

		public static String TOWN_REVOKE = "townRevoke";

		public static String TOWN_CHECK = "townCheck";

		public static String START_TOWN_IN_HOUSE = "startTownInHouse";

		public static String COMPLETE_TOWN_IN_HOUSE = "completeTownInHouse";

		public static String START_FIRST_AUDIT = "startFirstAudit";

		public static String COMPLETE_FIRST_AUDIT = "completeFirstAudit";

		public static String START_TOWN_AUDIT = "startTownAudit";

		public static String COMPLETE_TOWN_AUDIT = "completeTownAudit";

		public static String WAIT_NOTICE = "waitNotice";

		public static String WAIT_NOTICE_CONFIRM = "waitNoticeConfirm";

		public static String COMPLETE_NOTICE = "completeNotice";

		public static String DEL_NOTICE = "delNotice";

		public static String TOWN_SUBMIT = "townSubmit";

        public static String COUTY_CHECK = "countyCheck";

		public static String START_COUNTY_APPROVE = "startCountyApprove";

		public static String COMPLETE_COUNTY_APPROVE = "completeCountyApprove";

		public static String WAIT_NOTICE_COUNTRY = "waitNoticeCountry";

		public static String WAIT_NOTICE_CONFIRM_COUNTRY = "waitNoticeConfirmCountry";

		public static String COMPLETE_NOTICE_COUNTRY = "completeNoticeCountry";

		public static String DEL_NOTICE_COUNTRY = "delNoticeCountry";



		public final static List<String> ActivitiTypeList = new ArrayList<>();

		static {
			ActivitiTypeList.add(COMPLETE_TOWN_AUDIT);
			ActivitiTypeList.add(TOWN_SUBMIT);
			ActivitiTypeList.add(TOWN_DELETE);
			ActivitiTypeList.add(COMPLETE_COUNTY_APPROVE);
		}
	}

	public static class BizStateTmpNew{

		public static String SALVATION = "10";

		public static String TOWN_CHECK = "11";

		public static String WAIT_IN_HOUSE = "12";

		public static String YES_IN_HOUSE_ING = "19";

		public static String YES_IN_HOUSE = "20";

		public static String AUDIT_ING = "22";

		public static String WAITING_APPROVE = "23";

		public static String WAITING_REPORT = "30";

		public static String APPROVE_REJECT = "26";

		public static String WAIT_APPROVE = "29";

		public static String WAIT_NOTICE_BOARD = "33";

		public static String NOTICE_BOARD_CONFIRM = "34";

		public static String NOTICE_BOARD_ING = "35";

		public static String APPROVE_ING = "40";

		public static String COUNTY_CHECK = "41";

		public static String COUNTY_WAIT_IN_HOUSE = "42";

		public static String APPROVE_SAVE = "45";

		public static String COUNTY_WAIT_NOTICE_BOARD = "46";

		public static String COUNTY_NOTICE_BOARD_CONFIRM = "47";

		public static String COUNTY_NOTICE_BOARD_ING = "48";

		public static String COUNTY_TODO_DOWN_ING = "50";

		public static String TOWN_DELETE = "94";

		public static String AUDIT_REFUSE = "95";

		public static String APPROVE_REFUSE = "98";

		public static String APPROVE_YES = "99";
		public final static Map<String,String> BizStateChineseNameMap = new HashMap();

		static {
			BizStateChineseNameMap.put("10" , "已登记");
			BizStateChineseNameMap.put("11", "乡镇核对中");
			BizStateChineseNameMap.put("12", "已核对");
			BizStateChineseNameMap.put("19", "入户中");
			BizStateChineseNameMap.put("20", "已入户");
			BizStateChineseNameMap.put("22", "初审-暂存");
			BizStateChineseNameMap.put("23", "待审核");
			BizStateChineseNameMap.put("30", "待上报");
			BizStateChineseNameMap.put("26", "驳回");
			BizStateChineseNameMap.put("29", "审核确认中");
			BizStateChineseNameMap.put("33", "待公示");
			BizStateChineseNameMap.put("34", "公示待确认");
			BizStateChineseNameMap.put("35", "公示中");
			BizStateChineseNameMap.put("36", "公示完成");
			BizStateChineseNameMap.put("40", "待审批");
			BizStateChineseNameMap.put("41", "区县核对中");
			BizStateChineseNameMap.put("42", "区县已核对");
			BizStateChineseNameMap.put("45", "审批待确认");
			BizStateChineseNameMap.put("46", "区县待公示");
			BizStateChineseNameMap.put("47", "区县-公示待确认");
			BizStateChineseNameMap.put("48", "区县-公示中");
			BizStateChineseNameMap.put("50", "待下发");
			BizStateChineseNameMap.put("94", "乡镇已删除");
			BizStateChineseNameMap.put("95", "审核未通过");
			BizStateChineseNameMap.put("98", "审批-拒批");
			BizStateChineseNameMap.put("99", "已审批");
		}
	}



	public static class BizStateTmp{

		public static String SALVATION = "10";

		public static String TOWN_CHECK = "11";

		public static String WAIT_IN_HOUSE = "12";


		public static String YES_IN_HOUSE_ING = "19";

		public static String YES_IN_HOUSE = "20";


		public static String APPROVE_REJECT = "26";


		public static String WAIT_APPROVE = "29";

		public static String CONFIRM_APPROVE = "30";

		public static String WAIT_NOTICE_BOARD = "33";

		public static String NOTICE_BOARD_CONFIRM = "34";

		public static String NOTICE_BOARD_ING = "35";


		public static String WAIT_APPRAISAL = "37";

		public static String APPRAISAL_ING = "38";


		public static String APPROVE_ING = "40";


		public static String COUNTY_CHECK = "41";

		public static String COUNTY_WAIT_IN_HOUSE = "42";

		public static String COUNTY_YES_IN_HOUSE_ING = "43";

		public static String COUNTY_YES_IN_HOUSE = "44";

		public static String APPROVE_SAVE = "45";

		public static String COUNTY_WAIT_NOTICE_BOARD = "46";

		public static String COUNTY_NOTICE_BOARD_CONFIRM = "47";

		public static String COUNTY_NOTICE_BOARD_ING = "48";

		public static String COUNTY_TODO_DOWN_ING = "50";

		public static String TOWN_DELETE = "94";

		public static String AUDIT_REFUSE = "95";

		public static String APPROVE_REFUSE = "98";

		public static String APPROVE_YES = "99";
	}



	public static class IsSaveObject {
		public static String YES = "1";
		public static String NO = "0";
	}


	public static class IsAgent {
		public static String YES = "1";
		public static String NO = "0";
	}



	public static class MasterInSave {
		public static String NO = "02";
		public static String YES = "01";
	}


	public static class DomesticRelation{

		public static String ONESELF = "01";

		public static String SPOUSE = "10";

		public static String SON = "20";

		public static String DAUGHTER = "30";

		public static String GRANDSON = "40";

		public static String PARENT = "50";

		public static String GRANDPARENT = "60";

		public static String SIBLING = "70";

		public static String OTHER = "99";

		public static String SON_IN_LAW = "990";

		public static String DAUGHTER_IN_LAW = "991";

		public static String WIFES_PARENTS = "994";

		public static String NEPHEW = "995";

		public static String STEPCHILDREN = "996";
	}


	public static class  NoticeBoardState{

		public static String WAIT = "1";

		public static String CONFIRM = "2";

		public static String ING = "3";

		public static String COMPLETE = "4";

		public static  String REVOKE = "5";

		public static  String STOP = "6";

		public final static Map<String,String> operatMap = new HashMap();

		static {
			operatMap.put("1", "'1'");
			operatMap.put("2", "'1'");
			operatMap.put("3", "'1'");
			operatMap.put("4", "'3'");
			operatMap.put("5", "'3'");
		}
	}


	public  static class FundType{

		public static String CAPITAL_FUND_PAY = "01";

		public static String STAND_FUND_PAY = "02";

		public static String ALLOWANCE_FUND_PAY = "03";

		public static String CUSTOM_FUND_PAY = "04";

		public static String COMPOSITE_FUND_PAY = "05";

		public static String FUNERAL_FUND_PAY = "06";
	}


	public  static class FundStatus{

		public static Integer IGNORE = -1;

		public static Integer NO_CREATE = 0;

		public static Integer CREATED = 1;
	}


	public static class FundCapitalType{

		public static String SOCIAL_SECURITY = "1";

		public static String POVERTY_ALLEVIATION  = "2";
	}


	public static class PeopleState {

		public static String NORMAL = "01";

		public static String MISSING = "02";

		public static String DEAD = "03";

		public static String MARRIED = "04";

		public static String IN_PRISON = "05";

		public static String MOVE_OUT_HOUSEHOLD = "06";

		public static String EXPIRE = "07";

		public static String SUSPEND_STATE = "08";

		public static String OTHER = "99";
	}


	public static class SuspendFlag {

		public static String NORMAL_STATE = "1";

		public static String SUSPEND_STATE = "0";
	}


	public static class SuspendState{

		public static String S_SUSPEND = "0";

		public static String SUSPEND = "1";

		public static String N_SUSPEND = "11";

		public static String S_RECOVERY = "21";

		public static String RECOVERY = "2";

		public static String N_RECOVERY = "22";

		public static String S_STOP = "31";

		public static String STOP = "3";

		public static String N_STOP = "33";

		public static String S_REVOKE = "41";

		public static String REVOKE = "4";
	}

	public static class SuspendApproveType{

		public static String SUSPEND_S = "1";

		public static String SUSPEND_R = "2";

		public static String SUSPEND_E = "3";
	}


	public static class FundAllowanceGrantObject{

		public static String FAMILY = "01";

		public static String MEMBER = "02";
	}


	public static class FundPayState{

		public static String CREATE = "0";

		public static String CONFIRM = "1";

		public static String REVOKE = "2";

		public static String CREATE_FAIL = "3";

		public static String CREATE_ING = "55";

	}

	public static interface FundpayException {

		String F_TYPE_NORMAL = "1";
		String F_TYPE_CUSTOM = "2";
		String F_TYPE_TEMP = "3";


		String E_TYPE_BANK = "1";
		String E_TYPE_OTHER = "2";


		String STATE_INIT = "0";
		String STATE_CONFIRM = "1";
	}


	public static class StatisBusinessCode{

		public static String CITY_DIBAO = "110";

		public static String COUNTY_DIBAO = "120";

		public static String COUNTY_DIBAO_DOC = "121";

		public static String CITY_DIBAO_DOC = "122";

		public static String TEKUN = "130";

		public static String COUNTY_TEKUN_DOC = "133";

		public static String CITY_TEKUN_DOC = "134";

		public static String LINSHI = "500";
	}


	public static class CustomFundPayStand{

		public static String CITY_DIBAO = "110";

		public static String COUNTY_DIBAO = "120";

		public static String CITY_TEKUN = "132";

		public static String COUNTY_TEKUN = "131";

		public static String TEMPORARY = "500";
	}


	public static class GuicaiType{

		public static String CITY_DIBAO = "110";

		public static String COUNTY_DIBAO = "120";

		public static String CITY_TEKUN = "131";

		public static String COUNTY_TEKUN = "132";

		public static String TEMPORARY = "500";
	}


	public static class BusinessStandType{

		public static String CITY_DIBAO = "01";

		public static String COUNTY_DIBAO = "02";

		public static String CITY_TEKUN = "03";

		public static String COUNTY_TEKUN = "04";

		public static String LINGSHI = "05";
	}

	public static class SupplyType{

		public static String SUPPLY_FOCUS = "01";

		public static String SUPPLY_DISPERSE = "02";
	}


	public static class RecoveryState{

		public static Byte CANCEL = 0;

		public static Byte CONFIRM = 1;

		public static Byte UNCONFIRM = 2;
	}


	public static class StandFundPayReplacementType{

		public static final String WELFARE = "01";

		public static final String SUSPEND = "02";
	}


	public static class CapitalFundPayCostType{

		public static String BASIC = "310";

		public static String NURSING = "330";

		public static String ALL = "999";
	}


	public static class UserLevel{

		public static String PROVINCE = "1";

		public static String CITY = "2";

		public static String COUNTY = "3";

		public static String STREET = "4";

	}


	public static class  MonitorState{

		public static String UN_CONFIRM = "1";
	}


	public static class ExecPlanStatus {
		public static String AWAIT = "0";
		public static String DOING = "1";
		public static String DONE = "2";
		public static String FAILED = "3";
	}


	public static class OrderBizStateType{

		public static String ORDER_EDIT = "orderEdit";

		public static String TOWN_CHECK = "townCheck";

		public static String START_TOWN_IN_HOUSE = "startTownInHouse";

		public static String COMPLETE_TOWN_IN_HOUSE = "completeTownInHouse";

		public static String TOWN_DELETE = "townDelete";

		public static String TOWN_REVOKE = "townRevoke";

		public static String START_TOWN_AUDIT = "startTownAudit";

		public static String COMPLETE_TOWN_AUDIT = "completeTownAudit";

		public static String WAIT_NOTICE = "waitNotice";

		public static String WAIT_NOTICE_CONFIRM = "waitNoticeConfirm";

		public static String COMPLETE_NOTICE = "completeNotice";

		public static String DEL_NOTICE = "delNotice";

		public static String START_TOWN_IN_HOUSE_AGAIN = "startTownInHouseAgain";

		public static String COMPLETE_TOWN_IN_HOUSE_AGAIN = "completeTownInHouseAgain";

		public static String START_TOWN_APPRAISAL = "startTownAppraisal";

		public static String COMPLETE_TOWN_APPRAISAL = "completeTownAppraisal";

		public static String TOWN_SUBMIT = "townSubmit";

		public static String START_TOWN_IN_HOUS_COUNTY = "startTownInHouseCounty";

		public static String COMPLETE_TOWN_IN_HOUSE_COUNTY = "completeTownInHouseCounty";

		public static String START_COUNTY_APPROVE = "startCountyApprove";

		public static String COMPLETE_COUNTY_APPROVE = "completeCountyApprove";

		public static String WAIT_NOTICE_COUNTRY = "waitNoticeCountry";

		public static String WAIT_NOTICE_CONFIRM_COUNTRY = "waitNoticeConfirmCountry";

		public static String COMPLETE_NOTICE_COUNTRY = "completeNoticeCountry";

		public static String DEL_NOTICE_COUNTRY = "delNoticeCountry";

		public static String TMP_TOWN_CHECK = "tmpTownCheck";


		public final static List<String> ActivitiTypeList = new ArrayList<>();

        static {
            ActivitiTypeList.add(COMPLETE_TOWN_IN_HOUSE);
            ActivitiTypeList.add(START_TOWN_AUDIT);
            ActivitiTypeList.add(COMPLETE_TOWN_AUDIT);
            ActivitiTypeList.add(COMPLETE_NOTICE);

            ActivitiTypeList.add(TOWN_SUBMIT);
            ActivitiTypeList.add(TOWN_DELETE);
            ActivitiTypeList.add(COMPLETE_COUNTY_APPROVE);
        }
    }


	public static class TempasstCountType{

		public static String CITY = "201";

		public static String CITY_ONE = "201001";

		public static String CITY_TWO = "201002";

		public static String CITY_THREE = "201003";

		public static String CITY_FOUR = "201004";

		public static String CITY_FIVE = "201005";

		public static String CITY_SIX = "201006";

		public static String COUNTY = "202";

		public static String COUNTY_ONE = "202001";

		public static String COUNTY_TWO = "202002";

		public static String COUNTY_THREE = "202003";

		public static String COUNTY_FOUR = "202004";

		public static String COUNTY_FIVE = "202005";

		public static String COUNTY_SIX = "202006";

		public static String MANUAL = "204";

		public static String CAUSES_OF_SLEEPINESS = "300";

		public static String GOODS_TYPE = "400";

	}


	public static class OrderRecordFlag{

		public static final String STREET = "01";

		public static final String COUNTY = "02";

		public static final String DOWN = "03";
	}


	public static class DataSyncObjectType {
		public static final String PERSON = "10";
		public static final String ORG = "20";
	}


	public static class DataSyncOperationType {
		public static final String ADD = "0";
		public static final String UPDATE = "1";
	}


	public static class OneThingCheckType {
		public static final String NO = "0";
		public static final String YES = "1";
	}


	public static class FamilySalaryChangeType{

		public static final String CANCEL = "1";

		public static final String REVOKE = "2";

		public static final String BAN = "3";

		public static final String CHANGE = "4";
	}


	public static class StatisticsStatus{

		public static final String CREAT_EXPORT_ING = "0";

		public static final String FINISH = "1";

		public static final String CREAT_EXPORT_ITME_ING = "10";

		public static final String CREAT_EXPORT_ITME_SUCCESS = "20";

		public static final String ERROR = "30";

		public static final String CONFIRM = "2";

		public static final String DELETE = "3";
	}


	public static class Intermediary {

		public static final String NO = "0";

		public static final String YES = "1";
	}


	public static class InspectionBatchState {
		public static final String INIT = "01";
		public static final String UNCONFIRMED = "02";
		public static final String CONFIRMED = "03";
		public static final String FINISHED = "04";
	}


	public static class BatchPushState {
		public static final String NO = "01";
		public static final String YES = "02";
	}


	public static class AudtiOrApprovalResult{

		public static final String REJECT = "2";

		public static final String YES = "1";

		public static final String REFUSE = "0";

		public static final String REVOKE = "4";
	}


	public static class PayWay{

		public static final String ALL = "00";

		public static final String BANK = "01";

		public static final String CASH = "02";

		public static final String KIND = "03";
	}


	public static class IsHelpPoor{

		public static final String YES = "01";

		public static final String OUT_OF_POVERTY = "0101";

		public static final String NO_OUT_OF_POVERTY = "0102";

		public static final String RETURN_TO_POVERTY = "0103";

		public static final String NO = "02";
	}


	public static class checkWay{

		public static final String  PHONE = "01";

		public static final String  DOOR_TO_DOOR = "02";
	}


	public static class IsAuto{

		public static final String  YES = "1";

		public static final String  NO = "0";
	}


	public static class MarryState{

		public static final String  UNMARRIED = "10";

		public static final String  MARRIED = "20";

		public static final String  FIRST_MARRIAGE = "21";

		public static final String  REMARRY = "23";

		public static final String  REMARRIAGE = "22";

		public static final String  WIDOWED = "30";

		public static final String  DIVORCE = "40";

		public static final String  NOT_SPECIFIED = "90";
	}


	public static class PeopleType{

		public static final String  GONG_CHANG_DANG = "01";

		public static final String  YU_BEI_DANG_YUAN = "02";

		public static final String  QING_NIAN_TUAN_YUAN = "03";

		public static final String  GUO_MIN_DANG = "04";

		public static final String  MIN_ZHU_TONG_MENG = "05";

		public static final String  MIN_ZHU_JIAN_GUO = "06";

		public static final String  MIN_ZHU_CU_JIN = "07";

		public static final String  MMIN_GONG_MIN_ZHU = "08";

		public static final String  ZHI_GONG_DANG_YUAN = "09";

		public static final String  JIU_SAN_XUE_SHE = "10";

		public static final String  TAIWAN = "11";

		public static final String  WU_DANG_PAI = "12";

		public static final String  QUN_ZHONG	 = "13";

		public static final String  NOT_SPECIFIED = "20";
	}


	public static class InHouseState{

		public static final String  WAIT_CHECK = "0";

		public static final String  CHECKED = "1";
	}


	public static class InHouseResult{

		public static final String  RESULT_TREU = "1";

		public static final String  Result_UNTREU = "0";
	}


	public static class AppraisalResult{

		public static final String  ADOPT = "1";

		public static final String  FAIL = "0";
	}


	public static class MemberAssetsType{

		public static final String  SHOU_RU = "01";

		public static final String  GONG_ZI_XING_SHOU_RU = "0101";

		public static final String  JING_YING_XIANG_SHOU_RU = "0102";

		public static final String  CAI_CHAN_SHOU_RU = "0103";

		public static final String  ZHUAN_YI_XING_SHOU_RU = "0104";

		public static final String  QI_TA_SHOU_RU = "0105";

		public static final String  SHOU_RU_BEIZHU = "0199";

		public static final String  DI_KOU_XIANG = "02";

		public static final String  JIU_YI = "0201";

		public static final String  ZAI_JIU_YE = "0202";

		public static final String  PEI_XUN = "0203 ";

		public static final String  QI_TA = "0204 ";

		public static final String  ZHICHU_BEIZHU = "0299 ";

		public static final String  CAI_CHAN = "03";

		public static final String  YING_HANG_CUN_KUN = "0301";

		public static final String  JI_DONG_CHE_LIANG = "0302";

		public static final String  FANG_WU = "0303";

		public static final String  ZHAI_QUAN = "0304";

		public static final String  QI_TA_CAI_CHAN = "0305";

		public static final String  ASSETSTYPE = "ASSETSTYPE";


	}


	public static class FileType{

		public static final String  APPRAISAL = "601";

		public static final String  HOUSEHOLD_REGISTER = "101";

		public static final String CHECK_ENTRUST = "501";

		public static final String  CHECK_EMPOWER = "502";

		public static final String  COMMITMENT_LETTER = "213";

		public static final String  RECHECK_AUXILIARY = "214";

		public static final String  ONE_CASE_ONE_DISCUSSION = "215";

		public static final String  TMP_APPLICATION = "201";

		public static final String  FAMILY_OTHER = "105";

		public static final String  NOTICE_BOARD = "701";

		public static final String  IN_HOUSE = "211";

		public static final String  IDCARD = "102";

		public static final String  FACE_IMAGE = "103";

		public static final String  IDCARD_IMAGE = "104";

		public static final String  INCOME = "202";

		public static final String  DISABILITY = "203";

		public static final String  MARRIAGE = "204";

		public static final String  IN_STUDYING = "205";

		public static final String  ONLY_CHILD = "206";

		public static final String  DISEASE_DIAGNOSIS = "207";

		public static final String  MAINTENANCE_OBLIGATION = "208";

		public static final String  UNEMPLOYMENT_BENEFITS = "209";

		public static final String  RELEASE_CERTIFICATE = "210";

		public static final String  HOSPITAL_EXPENSE_SETTLEMENT = "301";

		public static final String  DISCHARGE_RECORD = "302";

		public static final String  INVOICE_TYPE = "303";

		public static final String  BANK_COPY = "401";

		public static final String  DEATH = "911";

		public static final String  MEMBER_OTHER = "402";

		public static final String  SUPPORT_IDCARD = "801";

		public static final String  SUPPORT_CHECK_EMPOWER = "802";

		public final static Map<String,String> FileTypeMap = new HashMap();

		static {
			FileTypeMap.put(APPRAISAL, "民主评议辅证材料");
			FileTypeMap.put(HOUSEHOLD_REGISTER, "户口本");
			FileTypeMap.put(CHECK_ENTRUST, "救助申请家庭经济状况核对委托书");
			FileTypeMap.put(CHECK_EMPOWER, "救助申请家庭经济状况核对授权书");
			FileTypeMap.put(COMMITMENT_LETTER, "救助申请家庭诚信承诺书");
			FileTypeMap.put(RECHECK_AUXILIARY, "修改复核辅证材料");
			FileTypeMap.put(ONE_CASE_ONE_DISCUSSION, "临时救助申请书");
			FileTypeMap.put(TMP_APPLICATION, "其他证明材料");
			FileTypeMap.put(FAMILY_OTHER, "个人证明材料-其他证明材料");
			FileTypeMap.put(NOTICE_BOARD, "公示");
			FileTypeMap.put(IN_HOUSE, "入户调查辅证材料");
			FileTypeMap.put(IDCARD, "身份证");
			FileTypeMap.put(FACE_IMAGE, "真人人脸图像");
			FileTypeMap.put(IDCARD_IMAGE, "身份证证件图像");
			FileTypeMap.put(INCOME, "收入证明");
			FileTypeMap.put(DISABILITY, "残疾证明");
			FileTypeMap.put(MARRIAGE, "婚姻证明");
			FileTypeMap.put(IN_STUDYING, "在读证明");
			FileTypeMap.put(ONLY_CHILD, "独生子女证");
			FileTypeMap.put(DISEASE_DIAGNOSIS, "疾病症断书");
			FileTypeMap.put(MAINTENANCE_OBLIGATION, "赡抚养义务证明");
			FileTypeMap.put(UNEMPLOYMENT_BENEFITS, "失业金领取证");
			FileTypeMap.put(RELEASE_CERTIFICATE, "释放证明");
			FileTypeMap.put(HOSPITAL_EXPENSE_SETTLEMENT, "医院费用结算单");
			FileTypeMap.put(DISCHARGE_RECORD , "出院记录复印件");
			FileTypeMap.put(INVOICE_TYPE, "发票类");
			FileTypeMap.put(BANK_COPY, "银行卡复印件");
			FileTypeMap.put(MEMBER_OTHER, "家庭证明材料-其他证明材料");
		}
	}


	public static class NoticeResult{

		public static final String FAIL = "2";

		public static final String PASS = "1";
	}


	public static class IsApply{
		public static final String YES = "1";
		public static final String NO = "2";
	}


	public static interface WelfareStatus {

		int VALID = 1;

		int INVALID = 0;
	}


	public static class WelfareTaskResult{

		public static final String NO_IMPLEMENT = "1";

		public static final String IMPLEMENT_ING = "2";

		public static final String NO_CONFIRM = "3";

		public static final String CONFIRM = "4";

		public static final String REVOKE_ING = "5";

		public static final String IMPLEMENT_FAIL = "6";

		public static final String CONFIRM_ING = "7";

		public static final String IMPLEMENT_ERROR = "8";


		public static final String CANCEL_ING = "9";


		public static final String CANCELED = "10";


		public static final String DATA_ERR = "20";
	}


	public static class WelfareSalaryType{

		public static final String TIAO_BIAO = "02";

		public static final String BU_FA = "03";
	}


	public static class WelfareIsReissue{

		public static final String YES = "1";

		public static final String NO = "2";
	}


	public static class StandardStatus{

		public static final String ENABLE = "1";

		public static final String DISABLE = "2";

		public static final String FROZEN = "3";

		public static final String NOT_ENABLE = "4";
	}


	public static class GuaranteeType{

		public static final String GEAR = "20";

		public static final String FIRST_GEAR = "21";

		public static final String TWO_GEAR = "22";

		public static final String THREE_GEAR = "23";

		public static final String FOUR_GEAR = "24";

		public static final String FIVE_GEAR = "25";

		public static final String SIX_GEAR = "26";

		public static final String SEVEN_GEAR = "27";

		public static final String EIGHT_GEAR = "28";

		public static final String NINE_GEAR = "29";

		public static final String COMPENSATION = "10";

		public static final String POLICY = "30";

		public static final String customize = "40";
	}


	public static class AssistantStandardType{

		public static final String CITY_FIRST_GEAR = "i01";

		public static final String CITY_TWO_GEAR = "i02";

		public static final String CITY_THREE_GEAR = "i03";

		public static final String CITY_FOUR_GEAR = "i04";

		public static final String CITY_FIVE_GEAR = "i05";

		public static final String CITY_SIX_GEAR = "i06";

		public static final String CITY_SEVEN_GEAR = "i07";

		public static final String CITY_EIGHT_GEAR = "i08";

		public static final String CITY_NINE_GEAR = "i09";

		public static final String TOWN_FIRST_GEAR = "n01";

		public static final String TOWN_TWO_GEAR = "n02";

		public static final String TOWN_THREE_GEAR = "n03";

		public static final String TOWN_FOUR_GEAR = "n04";

		public static final String TOWN_FIVE_GEAR = "n05";

		public static final String TOWN_SIX_GEAR = "n06";

		public static final String TOWN_SEVEN_GEAR = "n07";

		public static final String TOWN_EIGHT_GEAR = "n08";

		public static final String TOWN_NINE_GEAR = "n09";


		public final static Map<String,String> gearStandardMap = new HashMap();

		static {

			gearStandardMap.put("i01", "21");
			gearStandardMap.put("i02", "22");
			gearStandardMap.put("i03", "23");
			gearStandardMap.put("i04", "24");
			gearStandardMap.put("i05", "25");
			gearStandardMap.put("i06", "26");
			gearStandardMap.put("i07", "27");
			gearStandardMap.put("i08", "28");
			gearStandardMap.put("i09", "29");

			gearStandardMap.put("n01", "21");
			gearStandardMap.put("n02", "22");
			gearStandardMap.put("n03", "23");
			gearStandardMap.put("n04", "24");
			gearStandardMap.put("n05", "25");
			gearStandardMap.put("n06", "26");
			gearStandardMap.put("n07", "27");
			gearStandardMap.put("n08", "28");
			gearStandardMap.put("n09", "29");

		}
	}


    public static class Parameter {
		public static String LEVEL = "?0";
		public static String AREA = "?1";
		public static String TIME = "?2";
		public static String MONTH = "?3";
    }


	public static class LowIncomeFamilyState {

		public static String NORMAL = "0";

		public static String DELETED = "1";

		public static String APPLYING = "2";

		public static String APPLIED = "3";

	}


	public static class LowIncomeOriginType{

		public static String DIBAO = "01";

		public static String TEKUN = "02";

		public static String DIBIAN = "03";

		public static String WARN = "04";

		public static String LINGSHI = "05";

		public static String INPUT = "06";

		public static String EXCELINPUT = "1";
	}

	public static class IsExpendHard{

		public static String NO = "0";

		public static String YES = "1";

	}

	public static class CheckResult{

		public static String NO = "0";

		public static String YES = "1";

	}

	public static class PoliceIdcardResCode{

		public static String NOT_MATCH = "1";

		public static String CAN_APPLY = "2";

		public static String MATCH = "3";
	}


	public static class CaregiverType{

		public static String PERSONAL = "1";

		public static String MECHANISM = "2";
	}

	public static class CaregiverRelation{

		public static String RELATIVES = "01";

		public static String NEIGHBOR = "02";

		public static String WORKER = "03";

		public static String SOCIAL_WORKER = "04";

		public static String OTHER = "99";
	}

	public static class OrgSort{

		public static String PUBLIC_RUN = "01";

		public static String PUBLIC_PRIVATE = "02";

		public static String PRI_OPERATED = "03";
	}


	public static class recevierType{

		public static String PERSONAL = "0";

		public static String OTHER = "1";

		public static String MECHANISM = "2";
	}


	public static class IsAgentBank{

		public static String POST_OFFICE_BANK = "001";

		public static String COUNTRYSIDE_BANK = "002";
	}


	public static class FuneralStatus{

		public static String REGISTER = "01";

		public static String AUDIT = "02";

		public static String REJECT = "03";

		public static String CHECKED = "04";
	}


	public static class WOASTATE {

		public static String UNPROCESSED="0";

		public static String PROCESSED="1";
	}

	public static class MinimumLivingType{

		public static String HOUSEHOLD = "01";

		public static String SINGLE = "02";

		public static String OTHER = "03";
	}


	public static class SaveType{

		public static String ZHB = "01";

		public static String DRB = "02";
	}

	public static class RuralObjectType{

		public static String EDGE = "01";

		public static String SUDDEN = "02";

		public static String UNSTABLE = "03";

		public static String OTHER = "04";
	}

	public static class IntegrateCheckStatus{

		public static String WAIT_SAVE = "1";

		public static String  WAIT_CONFER ="2";

		public static String  CONFERED = "3";
	}

	public static class CheckFileType{

		public static String IDCARD_FILE = "01";

		public static String  AUTHOR_FILE ="02";
	}


	public static class CHANNEL{

		public static String WXAPP = "WXAPP";

	}

	public static class TempObjectType{

		public static String DIBAO = "121";

		public static String TEKUN = "122";

		public static String LOWINCOME = "140";

		public static String LINSHI = "500";

		public static String OTHER = "900";
	}

	public static class TaizhangType{

		public static String CITY_DIBAO = "204";

		public static String COUNTRY_DIBAO  = "205";

		public static String CITY_TEKUN = "206";

		public static String COUNTRY_TEKUN = "207";

		public static String LINSHI = "225";
	}

	public static class CheckRequestType{

        public static String SALVATION = "01";

        public static String OTHER = "99";
	}


	public static class SpecialSignType{

		public static String REGISTER = "00";

		public static String CHECKED = "10";

		public static String INVALID = "20";

		public static String AUDIT = "01";

		public static String REJECT = "02";
	}


	public static class SourceType {

		public static String H5_APP = "1";

		public static String WECHAT_APPLET = "3";

		public static String WECHAT_OFFICIAL_ACCOUNT = "5";

		public static String PC = "7";
	}

}
